import request from '@/utils/request'

// 查询老人退住列表
export function listRetreatRecords(query) {
  return request({
    url: '/business/retreatRecords/list',
    method: 'get',
    params: query
  })
}

// 查询老人退住详细
export function getRetreatRecords(id) {
  return request({
    url: '/business/retreatRecords/' + id,
    method: 'get'
  })
}

// 新增老人退住
export function addRetreatRecords(data) {
  return request({
    url: '/business/retreatRecords',
    method: 'post',
    data: data
  })
}

// 修改老人退住
export function updateRetreatRecords(data) {
  return request({
    url: '/business/retreatRecords',
    method: 'put',
    data: data
  })
}

// 删除老人退住
export function delRetreatRecords(id) {
  return request({
    url: '/business/retreatRecords/' + id,
    method: 'delete'
  })
}
